import time

from selenium.webdriver.common.by import By

from Base.page_base import PageBase
from tools import Tools


class AppPageEnterHome(PageBase):
    def __init__(self, driver):
        super().__init__(driver)
        self.__img_02 = (By.ID, 'com.tpshop.malls:id/start_img')
    def page_swipe_enter_home(self):
        time.sleep(5)
        for i in range(3):
            self.driver.swipe(1000,1250,200,1250,100)
        self.base_click(self.__img_02)
        time.sleep(1)
if __name__ == '__main__':
    dr = Tools.get_app_driver()
    enter_home = AppPageEnterHome(dr)
    enter_home.page_swipe_enter_home()



